<?php
namespace app\common\model;
use app\common\model\CommonModel;
use think\Db;

class PurchaseOrder extends CommonModel
{
	/**
	* 添加信息
	*/
	public function setPurchase($data)
	{
		return $this->insert($data);
	}
	/**
	* 获取列表
	*/
	public function getPurchaseList($where,$limit = 10,$page)
	{
	   $item = $this->where($where)->paginate($limit,false,['page'=>$page]);
       return empty($item) ? array():$item->toArray();
	}
}
